// JavaScript Document
function DialogBox_into(a) 
{ 
	a.style.display='block'; }
function DialogBox_exit(a)
{
	  a.style.display='none';
	  
}

/** start 弹出框3000ms消失 */
var t, count =0;
var obj; //obj为消失的对象框的id

function timedCount()
{
    count = count +　1;
	if(count <2)
       t=setTimeout("timedCount()",1000);
	else{
		obj.style.display='none';
		count = 0;
		stopCount();
	}
 }
 function stopCount()
 {
    clearTimeout(t)
 }
 
function DialogBox_SuccOrFail_into(a){
	obj = a;
	a.style.display='block';	
	timedCount();
	
}
/** end 弹出框3000ms消失 */


//更多下拉菜单效果		
var timeout  = 300;
var closetimer		= 0;
var ddmenuitem  = 0;
// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();
	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';
}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}
// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}
// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}
// close layer when click-out
document.onclick = mclose; 
// JavaScript Document